<?php $haya_favorite_count = db_count('haya_favorite', array('tid'=>$_thread['tid'])); ?>
<span class="ml-3 mr-2">
	<i class="icon-heart text-danger" aria-hidden="true"></i> 
	<?php echo $haya_favorite_count;?>
</span>